package bancosys.tec.security.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import bancosys.tec.security.authorization.Permission;

/**
 * @author takeshi
 */
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Secure {

    /**
     * O permission id
     */
    String id() default "";

    /**
     * O tipo da permissao. Vai ser usado junto com {@link #id()} para fazer o match.
     */
    Class<? extends Permission> permissionType() default Permission.class;

}
